<h1>用户管理</h1>

<table>
  <tr>
    <th width="10%">编号</th>
    <th>用户名</th>
    <th width="60%">邮箱</th>
    <th width="12%">管理</th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%= user.id %></td>
    <td><%= user.username %></td>
    <td><%= user.email %></td>
    <td><%= link_to_remote image_tag('edit.png',:alt => '编辑'), :update => 'content', :method => :get, :url => edit_user_path(user) %>
<%= link_to_remote image_tag('delete.png',:alt => '删除'), :update => "content", :url => user_url(user),:method => :delete, :confirm => "你确定删除吗?" %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to_remote '创建会员', :update => 'content', :method => :get, :url => new_user_path %>
